﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Chapter01
{
    public class Comments
    {
        public void CodeListing()
        {
            string firstName; //Variable for storing the first name
            string lastName; //Variable for storing the last name

            Console.WriteLine("Hey You");

            Console.WriteLine /* No new line */ (
                "Enter your first name");
            firstName = Console.ReadLine();

            Console.WriteLine /* No new line */ (
                "Enter your last name");
            lastName = Console.ReadLine();

            /* 
             * Displa a greeting to the console
             * using composite formatting. */

            Console.WriteLine("Your full name is {0} {1}.", firstName, lastName);
            // This is the end
            // of the program listing
        }
    }
}
